<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/style/cssMain.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/style/jQuery.js"></script>
    <script type="text/javascript" src="/style/jsMain.js"></script>
  </head>
  
  <body>
    <div id="eBody">
      <div class="eTitle">系统设置</div>
      <div class="eTag">
        <ul>
          <li class="eSelected"><a href="javascript:" onClick="eDivTag(this, 0)">Basic information</a></li>
          <li><a href="javascript:" onClick="eDivTag(this, 1)">Home Tags</a></li>
        </ul>
      </div>
      <form action="<?php echo site_url('mang/settings'); ?>" method="post">
      <div class="eSheet eBorder">
        <?php echo validation_errors(); ?>
        <div class="eEdit">
          <dl>
            <dt>Site name</dt>
            <dd><input class="text" name="title" type="text" value="<?php echo $eSettings->s_title; ?>" /></dd>
          </dl>
          <dl>
            <dt>E-mail</dt>
            <dd><input class="text" name="email" type="text" value="<?php echo $eSettings->s_email; ?>" /></dd>
          </dl>
          <dl>
            <dt>Smtp Host</dt>
            <dd><input class="text" name="smtphost" type="text" value="<?php echo $eSettings->s_smtphost; ?>" /></dd>
          </dl>
          <dl>
            <dt>Smtp Username</dt>
            <dd><input class="text" name="smtpuser" type="text" value="<?php echo $eSettings->s_smtpuser; ?>" /></dd>
          </dl>
          <dl>
            <dt>Smtp Password</dt>
            <dd><input class="text" name="smtppass" type="text" value="<?php echo $eSettings->s_smtppass; ?>" /></dd>
          </dl>
          <dl>
            <dt>Smtp Port</dt>
            <dd><input class="text" name="smtpport" type="text" value="<?php echo $eSettings->s_smtpport; ?>" /></dd>
          </dl>
        </div>
      </div>
      <div class="eSheet eBorder" style="display: none;">
        <?php echo validation_errors(); ?>
        <div class="eEdit">
          <dl>
            <dt>首页标题</dt>
            <dd><input class="text" name="hometitle" type="text" value="<?php echo $eSettings->s_hometitle; ?>" /></dd>
          </dl>
          <dl>
            <dt>首页关键词</dt>
            <dd><input class="text" name="homekeyword" type="text" value="<?php echo $eSettings->s_htmlkeyword; ?>" /></dd>
          </dl>
          <dl>
            <dt>首页描述</dt>
            <dd><textarea name="homedescribe"><?php echo $eSettings->s_htmldescribe; ?></textarea></dd>
          </dl>
        </div>
      </div>
      <div class="eTool">
        <input class="button" type="submit" value="立即保存">
      </div>
      </form>
    </div>
    </div>
  </body>
</html>
